package com.example.travel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.travel.domain.entity.Comment;
import com.example.travel.domain.response.CommentAndUserResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : LinQingLiang
 * @file : CommentMapper.java
 * @Since : 2023/2/15 18:05
 */

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 根据文章查询对应的所有人评论
     * @param articleId
     */
    List<CommentAndUserResponse> findCommentDetail(@Param("articleId") Integer articleId);
}
